package com.sacc.enums;

/**
 * @author 滚~韬
 * @date 2022/4/2 10:27
 */
public enum OrderStateEnum {
    /**
     * 无状态
     */
    NONE(),

    /**
     * 待支付
     */
    WAIT_FOR_PAY(),

    /**
     * 待发货
     */
    WAIT_FOR_SEND(),

    /**
     * 待收货
     */
    WAIT_FOR_GET();


    OrderStateEnum() {
    }
    public static OrderStateEnum getByCode(int code) {
        switch (code) {
            case 0:
                return WAIT_FOR_PAY;
            case 1:
                return WAIT_FOR_SEND;
            case 2:
                return WAIT_FOR_GET;
            default:
                return NONE;
        }
    }




}
